<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
 function salecheckdata(){
	var begindate=$("#salebegindate").val();
	var enddate=$("#saleenddate").val();
	var f=true;
	if(begindate>enddate){
		alertMsg.warn("结束日期不能早于起始日期！");
		f=false;
	}
	if(enddate==""){
		alertMsg.warn("请选择结束日期");
		f=false;
	}
	if(begindate==""){
		alertMsg.warn("请选择起始日期");
		f=false;
	}
	if(f==true){
		$("#schoolKtl")[0].submit();
	}
 }
 function ktldata(){
	 var flag=$("#rptflag").val();
	 var enddate=$("#enddate").val();
	 if(flag==""){
			alertMsg.warn("请选择统计类型！");
			return false;
		}
	 if(enddate==""){
			alertMsg.warn("请选择统计日期！");
			return false;
		}
	
 }
</script>
<div class="pageHeader">
			<form  name="schoolKtl" id="schoolKtl" onsubmit="return ktldata();"
				action="bisreport_schoolKtl.action" method="post" target="show_schoolKtl">
				<div class="searchBar nowrap">
					<!-- <p>
						<label>起始日期：</label> 
						<input type="text"  readonly="true" class="date" name="salebegindate" id="salebegindate"
						dateFmt="yyyy-MM-dd" />
					</p>
					<p>
						<label>结束日期：</label> 
						<input type="text" name="saleenddate" id="saleenddate" class="date" dateFmt="yyyy-MM-dd" readonly="true"/>
					</p> -->
					<p>
						<label>统计类型：</label> 
						<select id="rptflag" class="combox" name="rptflag">
							<option value="">--请选择--</option>
							<option value="1">按周统计</option>
							<option value="0">按月统计</option>
						</select>
					</p>
					<p>
						<label>统计日期：</label> 
						<input type="text"  readonly="true" class="date" name="enddate" id="enddate"
						dateFmt="yyyy-MM-dd" />
					</p>
					<p>
						<label>地区：</label> 
						<select id="rpt_areaCode" class="combox" name="areaCode" ref="rpt_cityCode" refUrl="school_getAreaByCity.action?areaCode={value}">
							<option value="0">--全部--</option>
							<c:forEach items="${application.areaList }" var="area">
								<option value="${area.areaCode}">${area.areaName}</option>
							</c:forEach>
						</select>
					</p>
					<p>
						<label>县区：</label> 
						<select id="rpt_cityCode" class="combox" name="cityCode">
							<option value="0">--请选择--</option>
						</select>
					</p>
					<div class="subBar">
						<ul>
							<li><div class="buttonActive">
									<div class="buttonContent">
										<button  type="submit">统计</button>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</div>
			</form>
	</div>
<div class="pageContent" layoutH="43">
 <iframe name="show_schoolKtl" src="about:blank" frameborder="0" width="100%" height="100%"></iframe>
</div>	

